package com.sba.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sba.core.domain.Role;
import com.sba.core.repository.RoleRepository;
import com.sba.core.service.RoleService;

/**
 * 
 * @author feiliming
 *
 */
@Service
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService{
	
	@Autowired
	RoleRepository roleRepository;

	@Override
	public List<Role> getRoles() {
		return roleRepository.findAllByOrderBySortAsc();
	}
	
	/*@Override
	public List<Role> getRoles(int isEnabled) {
		return roleRepository.findByIsEnabledOrderBySortAsc(isEnabled);
	}*/
	
}
